from django.db import models


# Create your models here.

class Book(models.Model):
    name = models.CharField('名称', max_length=64, null=True)
    id = models.AutoField('序号', primary_key=True)
    author = models.CharField('作者', max_length=64)
    translater = models.CharField('译者', max_length=64)
    publisher = models.CharField('出版社', max_length=64)


class User(models.Model):
    id = models.AutoField('序号', primary_key=True)
    name = models.CharField('用户名', max_length=32)
    password = models.CharField('密码', max_length=32)
    email = models.EmailField('邮箱', max_length=32)
    phone = models.IntegerField('手机', max_length=11)
